package net.suncapper.wcss.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import net.suncapper.wcss.model.domain.AuditHistory;
import net.suncapper.wcss.mapper.AuditHistoryMapper;
import net.suncapper.wcss.model.vo.ApplicationVO;
import net.suncapper.wcss.service.IAuditHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 审核历史表 服务实现类
 * </p>
 *
 * @author ztr
 * @since 2025-11-11
 */
@Service
public class AuditHistoryServiceImpl extends ServiceImpl<AuditHistoryMapper, AuditHistory> implements IAuditHistoryService {
@Autowired
private AuditHistoryMapper auditHistoryMapper;
    @Override
    public List<AuditHistory> getList(AuditHistory auditHistory, ApplicationVO applicationVO) {
       List<AuditHistory> list= auditHistoryMapper.selectList(Wrappers.<AuditHistory>lambdaQuery().eq(AuditHistory::getApplicationId,applicationVO.getId()));
       return list;
    }
}
